-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
02 - Add a content block to the homepage #7
Open
luca-rath
wants to merge
1
commit into
assignment/01
Choose a base branch
from
assignment/02
base: assignment/01
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
c8d2b1b
to
54dc2eb
Compare
62269c8
to
4a3b90c
Compare
d3b0852
to
d2641ea
Compare
d2641ea
to
f54429c
Compare
f1c945f
to
a875bf1
Compare
f54429c
to
59960cb
Compare
a875bf1
to
8b44076
Compare
59960cb
to
197981d
Compare
8b44076
to
7d0a4d4
Compare
197981d
to
3c66779
Compare
7d0a4d4
to
5b17716
Compare
3f7a1d5
to
57392b6
Compare
3a7ed77
to
a48c3cd
Compare
57392b6
to
34aaaef
Compare
e1b6743
to
61c2dc1
Compare
f9b3e0e
to
fc9d6b7
Compare
fc9d6b7
to
ffd157f
Compare
34b1d1b
to
a7cf2ce
Compare
ffd157f
to
7299fdd
Compare
7299fdd
to
d8b37c6
Compare
b43077b
to
b470b18
Compare
a2908ef
to
8c9c7ec
Compare
b470b18
to
69a2e31
Compare
69a2e31
to
fb0a78b
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Add a content block to the homepage
Goal
Currently the content of our homepage consists of a single text editor and therefore lacks the possibility of managing
different kinds of standardized content sections. We want to provide a way to manage content blocks such as image
galleries or quotes to our content manager without having to worry about breaking the layout of our page.
Steps
blocks
to theconfig/templates/pages/homepage.xml
filetemplates/pages/homepage.html.twig
Hints
Run
bin/console sulu:content:types:dump
to list all available content types.More Information
The block content type allows to define an arbitrary amount of block types. Each block type is a composition of
multiple basic content types. After defining a block content type, the content manager is able to create and sort
instances of the configured block types in the Sulu administration interface.
A common use case for the block content type is to group a text editor and a media selection. This allows to couple
the respective text to the selected image and render it in a flexible and responsive way on your website. In contrast,
adding images to a basic text editor makes it harder to adapt the format and placement in your twig template.
Links